package com.dark.sys.service;

import java.util.List;
import java.util.Set;

import com.dark.sys.web.dto.ResourceDto;
import com.dark.sys.web.dto.RoleResourceDto;

public interface RoleResourceService {
	
	public void add(RoleResourceDto dto) ;

	public RoleResourceDto getOneByRoleId(Integer roleId) ;
	
	public List<ResourceDto> operationResourceTree(ResourceDto dto) ;

	/**
	 * 获取角色对应的资源
	 * @param roleIds
	 * @return
	 */
	public Set<Integer> getByRoleToResource(String roleIds) ;
	
}
